﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;


namespace TrackSystem.Entities.Models
{
    /// <summary>
    /// 保存记录的数据表
    /// </summary>
    [Table("record")]
    public class RecordTable
    {
        /// <summary>
        /// 统一标识符
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Display(Name = "统一标识符")]
        public int Id { get; set; }

        /// <summary>
        /// 变量名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 数据值
        /// </summary>
        public double Value { get; set; }

        /// <summary>
        /// 记录时间
        /// </summary>
        public DateTime dateTime { get; set; }
    }
}
